// JointPortMatchFunction.h: interface for the JointPortMatchFunction class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_JOINTPORTMATCHFUNCTION_H__B42F3D2B_FA36_49C5_AABA_5FAA4D4434ED__INCLUDED_)
#define AFX_JOINTPORTMATCHFUNCTION_H__B42F3D2B_FA36_49C5_AABA_5FAA4D4434ED__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "JointOwnFunction.h"

class DllExport JointPortMatchFunction : public JointOwnFunction  
{
	DECLARE_DYNAMIC_CREATE(JointPortMatchFunction);
public:
	JointPortMatchFunction();
	virtual ~JointPortMatchFunction();

public:
	void Add(const CString& strExpr){
		m_strExprFormerArray.Add(strExpr);
	}
	virtual FunctionObject* InstanceFunction(Joint* pJoint);
	virtual BOOL Execute();

private:
	CStringArray m_strExprFormerArray;
	CStringArray m_strExprArray;
};

#endif // !defined(AFX_JOINTPORTMATCHFUNCTION_H__B42F3D2B_FA36_49C5_AABA_5FAA4D4434ED__INCLUDED_)
